package com.wanghuadi.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.wanghuadi.beans.Meeting;
import com.wanghuadi.service.MeetingService;

@Controller
public class MeetingController {
	
	@Resource
	private MeetingService meetingService;
	
	@RequestMapping("list")
	public String list(Model model){
		Map<String, Object> map = new HashMap<>();
		List<Meeting> queryMeeting = meetingService.queryMeeting(map );
		model.addAttribute("list", queryMeeting);
		return "list";
	}

}
